v4.3.0 introduces a new API for sending messages - no more trying to remember which packet to send
Send a message which will appear on the local computer only (IS_MSL):
inSim.sendLocalMessage('Local message');
Starts with a slash - send an IS_MST packet:
inSim.sendMessage('/end');
Up to 63 characters - send an IS_MST packet:
inSim.sendMessage(
'This is a message that is shorter than 64 characters exactly 63',
);
64 characters or more - send an IS_MSX packet:
inSim.sendMessage(
'This is another long message that is exactly 64 characters long!',
);
Send a message to a specific connection by their UCID (IS_MTC):
inSim.sendMessageToConnection(4, 'This is a message targeting UCID 4');
Send a message to a specific player by their PLID (IS_MTC):
inSim.sendMessageToPlayer(4, 'This is a message targeting PLID 4');